require("lualib_bundle");
__TS__SourceMapTraceBack(debug.getinfo(1).short_src, {["4"] = 2,["5"] = 2,["6"] = 4,["7"] = 4,["8"] = 4,["10"] = 4,["11"] = 7,["12"] = 8,["13"] = 8,["14"] = 8,["16"] = 8,["17"] = 9,["18"] = 9,["19"] = 9,["20"] = 9,["21"] = 10,["22"] = 11,["24"] = 13,["25"] = 14,["27"] = 16,["28"] = 17,["29"] = 19,["30"] = 20,["31"] = 21,["33"] = 22,["34"] = 23,["36"] = 24,["37"] = 25,["40"] = 27,["42"] = 28,["43"] = 29,["46"] = 31,["48"] = 32,["49"] = 33,["52"] = 35,["54"] = 36,["55"] = 37,["58"] = 39,["60"] = 40,["61"] = 41,["64"] = 43,["66"] = 44,["67"] = 45,["70"] = 47,["72"] = 48,["73"] = 49,["76"] = 51,["78"] = 52,["79"] = 53,["82"] = 55,["84"] = 56,["85"] = 57,["89"] = 61,["90"] = 61,["91"] = 61,["92"] = 61,["93"] = 61,["94"] = 61,["95"] = 61,["96"] = 61,["97"] = 9,["98"] = 9,["99"] = 9,["100"] = 63,["101"] = 63,["102"] = 63,["103"] = 63,["104"] = 64,["105"] = 63,["106"] = 63,["107"] = 63,["108"] = 7,["109"] = 4});
local ____exports = {}
local ____FrameDefault = require("solar.w3ts.tsx.FrameDefault")
local frameDefaults = ____FrameDefault.frameDefaults
____exports.default = __TS__Class()
local FramePropUtil = ____exports.default
FramePropUtil.name = "FramePropUtil"
function FramePropUtil.prototype.____constructor(self)
end
function FramePropUtil.setProp_frametip(self, frame, prop, value)
    local ____value_0 = value
    if ____value_0 == nil then
        ____value_0 = frameDefaults[prop]
    end
    local val = ____value_0
    DzFrameSetScriptByCode(
        frame,
        2,
        function()
            if not val.pos then
                val.pos = 7
            end
            if val.onTip then
                val:onTip(val.frametipRef.current, frame)
            end
            DzFrameShow(val.frametipRef.current, true)
            DzFrameClearAllPoints(val.frametipRef.current)
            local gap = 0.01
            local x = 0
            local y = 0
            repeat
                local ____switch7 = val.pos
                local ____cond7 = ____switch7 == 0
                if ____cond7 then
                    x = -gap
                    y = gap
                    break
                end
                ____cond7 = ____cond7 or ____switch7 == 1
                if ____cond7 then
                    x = 0
                    y = gap
                    break
                end
                ____cond7 = ____cond7 or ____switch7 == 2
                if ____cond7 then
                    x = gap
                    y = gap
                    break
                end
                ____cond7 = ____cond7 or ____switch7 == 3
                if ____cond7 then
                    x = -gap
                    y = 0
                    break
                end
                ____cond7 = ____cond7 or ____switch7 == 4
                if ____cond7 then
                    x = 0
                    y = 0
                    break
                end
                ____cond7 = ____cond7 or ____switch7 == 5
                if ____cond7 then
                    x = gap
                    y = 0
                    break
                end
                ____cond7 = ____cond7 or ____switch7 == 6
                if ____cond7 then
                    x = -gap
                    y = -gap
                    break
                end
                ____cond7 = ____cond7 or ____switch7 == 7
                if ____cond7 then
                    x = 0
                    y = -gap
                    break
                end
                ____cond7 = ____cond7 or ____switch7 == 8
                if ____cond7 then
                    x = gap
                    y = -gap
                    break
                end
            until true
            DzFrameSetPoint(
                val.frametipRef.current,
                8 - val.pos,
                frame,
                val.pos,
                x,
                y
            )
        end,
        false
    )
    DzFrameSetScriptByCode(
        frame,
        3,
        function()
            DzFrameShow(val.frametipRef.current, false)
        end,
        false
    )
end
____exports.default = FramePropUtil
return ____exports
